package com.mindao.app.basic.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.mindao.app.common.spring.controller.BaseBaseController;

/**
/* 版权所有： 广州敏道科技有限公司
/*
/* 功能描述：SpringMVC 演示（JSP）
/*
 * 
* 访问路径：类映射+方法名称映射.do,如/basic/hellojsp/sayHi.do
* 返回页面在代码指定：app/类映射+方法名称映射.ftl, 如app/basic/hellojsp/sayHi.jsp
* 
 * @author liguocai
 *
 */
/* 创 建 人：李国才
/* 创建时间：2016年7月8日 下午2:15:18 	
 **/

@Controller
@RequestMapping("/basic/hellojsp")
public class HelloJspController {
	//原生springMVC
	@RequestMapping(value="/sayHi",method=RequestMethod.GET)
	public String sayHi(HttpServletRequest request, HttpServletResponse response, HttpSession session, Model rhs){
		rhs.addAttribute("account", "admin");
		return "basic/hellojsp/sayHi";
	}
}
